package com.bdqn.bookshop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bdqn.bookshop.entity.Guide;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface GuideMapper extends BaseMapper<Guide> {
    @Select("select g.id,g.title from guide g")
    List<Guide> selectList();

    @Select("select g.id,g.title from guide  g limit 4")
    List<Guide> selectFourList();
}
